package com.lovo.homework7_8GameOfRockPaperScissors;

public abstract class Role {
    private String name;
    private int number ;

    abstract public void generate();

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public String toString(){
        String str = "";
        str+=this.name+"选择出："+this.number;
        return str;
    }
}
